<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>侧边栏-OMS</title>
</head>
<body>

<th:block th:fragment="sidebar"
          th:with="omsURL = ${session.OMS.value},trackURL = ${session.TRACK.value},remindURL = ${session.REMIND.value},umsURL = ${session.UMS.value},vasURL = ${session.VAS.value},perfURL = ${session.PERFORMANCE!=null?session.PERFORMANCE.value:session.PERF.value}">
    <!-- 工单系统OMS -->
    <li data-name="oms-menu" class="layui-nav-item">
        <div class="system">工单系统OMS</div>

        <dl class="layui-nav-child show">
            <dd data-name="mast-menu"
                th:if="${#authPermit.checkMenuPermit('/mos/order/*.action')}">
                <a href="javascript:;" lay-tips="订单管理" lay-direction="2">
                    <i class="layui-icon layui-icon-file-b"></i>
                    <cite>订单管理</cite>
                </a>

                <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/mos/order/list.action')}">
                    <dd>
                        <a th:lay-href="|${session.MOS.value}/order/list.action|">主单管理</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 工单管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="mast-menu" th:if="${#authPermit.checkMenuPermits(false, '/work/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>服务工单管理</cite>
                </a>
                <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermits(false, '/all/work/list.action', '/order/normal/simpleAdd.action', '/customerservice/work/list.action')}">
                    <dd th:if="${#authPermit.checkMenuPermit('/all/work/list.action')}">
                        <a th:lay-href="|${omsURL}/all/work/list.action|">工单查询</a>
                    </dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/order/normal/simpleAdd.action')}">
                        <a th:lay-href="|${omsURL}/order/normal/simpleAdd.action|">快捷下单</a>
                    </dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/customerservice/work/list.action')}">
                        <a th:lay-href="|${omsURL}/customerservice/work/list.action|">话务工单</a>
                    </dd>
                </dl>
                <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/chan/clueDetail/list.action')}">
                    <dd>
                        <a th:lay-href="|${omsURL}/chan/clueDetail/list.action|">线索池</a>
                    </dd>
                </dl>
                <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/perf/stock/*')}">
                    <a href="javascript:">
                        <cite>库存查询</cite>
                    </a>
                    <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/perf/stock/city/list')}">
                        <dd>
                            <a th:lay-href="|${perfURL}/stock/city/list|">下单库存</a>
                        </dd>
                    </dl>
                    <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/perf/stock/sp/list')}">
                        <dd>
                            <a th:lay-href="|${perfURL}/stock/sp/list|">服务商库存</a>
                        </dd>
                    </dl>
                    <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/report/stock/warning')}">
                        <dd>
                            <a th:lay-href="|${perfURL}/report/stock/warning/list|">库存预警</a>
                        </dd>
                    </dl>
                </dl>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/zs/work/*.action')}">
                        <a href="javascript:;">啄木鸟工单</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/order/normal/add.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/add.action|">新增工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/call/info/add.action')}">
                                <a th:lay-href="|${omsURL}/call/info/add.action|">线索录入</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/purpose_order/add.action')}">
                                <a th:lay-href="|${omsURL}/order/purpose/add.action|">添加意向单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/work/list.action')}">
                                <a th:lay-href="|${omsURL}/work/list.action|">工单管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/order/reply_visit/list.action')}">
                                <a th:lay-href="|${omsURL}/question/replyvisit/list.action?plat=10|">回访工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/member/work/list.action')}">
                                <a th:lay-href="|${omsURL}/member/work/list.action|">特权工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/branchfinance/work/list.action')}">
                                <a th:lay-href="|${omsURL}/branchfinance/work/list.action|">财务工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/hqfinance/work/list.action')}">
                                <a th:lay-href="|${omsURL}/hqfinance/work/list.action|">总财工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/qualitycontrol/work/list.action')}">
                                <a th:lay-href="|${omsURL}/qualitycontrol/work/list.action|">品控工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/crm/user/orderList.action')}">
                                <a th:lay-href="|${umsURL}/crm/user/orderList.action|">政企工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/call/record/list.action')}">
                                <a th:lay-href="|${omsURL}/call/record/list.action|">通话记录</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/order_purpose/list.action')}">
                                <a th:lay-href="|${omsURL}/order/purpose/list.action|">意向单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/order_comment/list.action')}">
                                <a th:lay-href="|${omsURL}/order_comment/list.action|">工单评价</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/zs/order_part/list.action')}">
                                <a th:lay-href="|${omsURL}/order_part/list.action|">工单配件</a>
                            </dd>
                        </dl>
                    </dd>

                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/ys/work/*.action')}">
                        <a href="javascript:;">言而有信工单</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order/factory/add.action')}">
                                <a th:lay-href="|${omsURL}/order/factory/add.action|">添加厂商单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order/factory/batchAdd.action')}">
                                <a th:lay-href="|${omsURL}/order/factory/batchAdd.action|">批量下单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order/normal/add.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/yeyx/add.action|">添加普通单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order/simpleAdd.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/yeyx/simpleAdd|">快捷下单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/work/list.action')}">
                                <a th:lay-href="|${omsURL}/ys/work/list.action|">工单管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order/reply_visit/list.action')}">
                                <a th:lay-href="|${omsURL}/question/replyvisit/list.action?plat=20|">回访工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/ys/order_comment/list.action')}">
                                <a th:lay-href="|${omsURL}/ys/order_comment/list.action|">工单评价</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/track/complain/tmall/list.action')}">
                                <a th:lay-href="|${session.UMS.value}/track/complain/tmall/list.action|">天猫投诉</a>
                            </dd>
                        </dl>
                    </dd>

                    <!--一步维修工单管理-->
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/saas/work/*.action')}">
                        <a href="javascript:;">一步维修工单</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/saas/order/add.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/saas/add.action|">新增工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/saas/order/simpleAdd.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/saas/simpleAdd|">快捷下单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/saas/work/list.action')}">
                                <a th:lay-href="|${omsURL}/saas/work/list.action|">工单管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/saas/order/reply_visit/list.action')}">
                                <a th:lay-href="|${omsURL}/question/replyvisit/list.action?plat=30|">回访工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/saas/order_comment/list.action')}">
                                <a th:lay-href="|${omsURL}/saas/order_comment/list.action|">工单评价</a>
                            </dd>
                        </dl>
                    </dd>

                    <!--川南环保工单管理-->
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/cnhb/work/*.action')}">
                        <a href="javascript:;">川南环保工单</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/cnhb/order/add.action')}">
                                <a th:lay-href="|${omsURL}/order/normal/cnhb/add.action|">新增工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/cnhb/work/list.action')}">
                                <a th:lay-href="|${omsURL}/cnhb/work/list.action|">工单管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/cnhb/order/reply_visit/list.action')}">
                                <a th:lay-href="|${omsURL}/question/replyvisit/list.action?plat=40|">回访工单</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/cnhb/order_comment/list.action')}">
                                <a th:lay-href="|${omsURL}/cnhb/order_comment/list.action|">工单评价</a>
                            </dd>
                        </dl>
                    </dd>

                    <!-- 手机维修 -->
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/order/entrust/*.action')}">
                        <a href="javascript:;">手机维修</a>
                        <dl class="layui-nav-child">

                            <dd th:if="${#authPermit.checkMenuPermit('/order/entrust/list.action')}">
                                <a th:lay-href="|${omsURL}/order/entrust/list.action|">工单管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/order/entrust/add.action')}">
                                <a th:lay-href="|${omsURL}/order/entrust/add.action|">录入手机订单</a>
                            </dd>
                        </dl>
                    </dd>

                    <!--价格表-->
                    <dd th:if="${#authPermit.checkMenuPermit('/zs/oms/work/pricetable/list.action')}">
                        <a th:lay-href="|${omsURL}/work/price/table/list.action|">价格表</a>
                    </dd>

                </dl>
            </dd>
        </dl>

        <dl class="layui-nav-child show">
            <!--预警超时-->
            <dd data-name="warningTimeout" th:if="${#authPermit.checkMenuPermit('/order/warning/timeout/*')}">
                <a href="javascript:void(0);">
                    <i class="layui-icon layui-icon-fire"></i>
                    <cite>预警超时</cite>
                </a>
                <dl class="layui-nav-child">

                    <dd th:if="${#authPermit.checkMenuPermit('/order/warning/current/list/C')}">
                        <a th:lay-href="|${perfURL}/order/warning/current/list/C|">C端当前预警</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/warning/history/list/C')}">
                        <a th:lay-href="|${perfURL}/order/warning/history/list/C|">C端历史预警</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/timeout/current/list/C')}">
                        <a th:lay-href="|${perfURL}/order/timeout/current/list/C|">C端当前超时</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/timeout/history/list/C')}">
                        <a th:lay-href="|${perfURL}/order/timeout/history/list/C|">C端历史超时</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/warning/current/list/F')}">
                        <a th:lay-href="|${perfURL}/order/warning/current/list/F|">F端当前预警</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/warning/history/list/F')}">
                        <a th:lay-href="|${perfURL}/order/warning/history/list/F|">F端历史预警</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/timeout/current/list/F')}">
                        <a th:lay-href="|${perfURL}/order/timeout/current/list/F|">F端当前超时</a>
                    </dd>

                    <dd th:if="${#authPermit.checkMenuPermit('/order/timeout/history/list/F')}">
                        <a th:lay-href="|${perfURL}/order/timeout/history/list/F|">F端历史超时</a>
                    </dd>

<!--                    <dd th:if="${#authPermit.checkMenuPermit('/conf/timeout/')}">-->
<!--                        <a th:lay-href="|${perfURL}/conf/timeout/|">预警超时配置</a>-->
<!--                    </dd>-->

                    <dd th:if="${#authPermit.checkMenuPermit('/order/left/current/list') || #authPermit.checkMenuPermit('/order/left/history/list')}">
                        <a th:lay-href="|${perfURL}/order/left/current/list|">遗留订单</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <dl class="layui-nav-child show">
            <dd data-name="mast-menu"
                th:if="${#authPermit.checkMenuPermits(false, '/track/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-tips"></i>
                    <cite>跟单管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd th:if="${#authPermit.checkMenuPermit('/track/list.action')}">
                        <a th:lay-href="|${trackURL}/track/list.action|">跟单列表</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <dl class="layui-nav-child show" th:if="${#authPermit.checkMenuPermit('/remind/statistics/record.action')}">
            <i class="layui-icon layui-icon-list"></i>
            <!--机器人电话记录-->
            <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/remind/statistics/record.action')}">
                <a th:lay-href="|${remindURL}/remind/statistics/record.action|">机器人电话记录</a>
            </dd>
        </dl>

        <!-- 投诉异常 -->
        <dl class="layui-nav-child show">
            <dd data-name="mast-menu"
                th:if="${#authPermit.checkMenuPermits(false, '/track/*.action','/abnor/abnormal/list.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-tips"></i>
                    <cite>投诉异常</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd th:if="${#authPermit.checkMenuPermit('/abnor/abnormal/list.action')}">
                        <a th:lay-href="|${umsURL}/abnor/abnormal/list.action|">啄木鸟异常</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!--投诉管理新 -->
        <dl class="layui-nav-child show">
            <dd data-name="mast-menu" th:if="${#authPermit.checkMenuPermits(false,'/chs/*')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-tips"></i>
                    <cite>投诉管理新</cite>
                </a>
                <!-- 啄木鸟投诉 -->
                <dl class="layui-nav-child">
                    <dd data-name="button"
                        th:if="${#authPermit.checkMenuPermits(false,'/chs/zmn/complain/list/index.action','/chs/zmn/complain/timeout/list.action')}">
                        <a href="javascript:;">啄木鸟投诉</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/zmn/complain/list/index.action')}">
                                <a th:lay-href="|${umsURL}/chs/complain/list/index.action?tabIndex=0&plat=10|">投诉管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/zmn/complain/timeout/list.action')}">
                                <a th:lay-href="|${umsURL}/chs/complain/timeout/list.action?plat=10|">投诉时效管理</a>
                            </dd>
                        </dl>
                    </dd>
                </dl>
                <!-- 言而有信投诉 -->
                <dl class="layui-nav-child">
                    <dd data-name="button"
                        th:if="${#authPermit.checkMenuPermits(false,'/chs/yeyx/complain/list/index.action','/chs/yeyx/complain/timeout/list.action')}">
                        <a href="javascript:;">言而有信投诉</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/yeyx/complain/list/index.action')}">
                                <a th:lay-href="|${umsURL}/chs/complain/list/index.action?tabIndex=0&plat=20|">投诉管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/yeyx/complain/timeout/list.action')}" >
                                <a th:lay-href="|${umsURL}/chs/complain/timeout/list.action?plat=20|">投诉时效管理</a>
                            </dd>
                        </dl>
                    </dd>
                </dl>
                <!-- 川南环保投诉 -->
                <dl class="layui-nav-child">
                    <dd data-name="button"
                        th:if="${#authPermit.checkMenuPermits(false,'/chs/cnhb/complain/list/index.action','/chs/cnhb/complain/timeout/list.action')}">
                        <a href="javascript:;">川南环保投诉</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/cnhb/complain/list/index.action')}">
                                <a th:lay-href="|${umsURL}/chs/complain/list/index.action?tabIndex=0&plat=40|">投诉管理</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/cnhb/complain/timeout/list.action')}" >
                                <a th:lay-href="|${umsURL}/chs/complain/timeout/list.action?plat=40|">投诉时效管理</a>
                            </dd>
                        </dl>
                    </dd>
                </dl>

                <!-- 基础配置 -->
                <dl class="layui-nav-child">
                    <dd data-name="button"
                        th:if="${#authPermit.checkMenuPermits(false,'/chs/content/list/index.action','chs/handle/plan/config/list/index.action',
                        'chs/complain/notifier/list/index.action','/chs/popular/feelings/config/list/index.action','/chs/zmn/appeal/validity/period/config/list/index.action',
                        '/chs/yeyx/appeal/validity/period/config/list/index.action', '/chs/cnhb/appeal/validity/period/config/list/index.action',
                        '/chs/level/fine/config/list/index.action','/chs/category/list/index.action')}">
                        <a href="javascript:;">chs基础配置</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/content/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/content/list/index.action|" lay-text="投诉内容配置">投诉内容配置</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/handle/plan/config/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/handle/plan/config/list/index.action|" lay-text="处理方案配置">处理方案配置</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/complain/notifier/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/complain/notifier/list/index.action|" lay-text="投诉通知人配置">投诉通知人配置</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/popular/feelings/config/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/popular/feelings/config/list/index.action|" lay-text="舆情影响配置">舆情影响配置</a>
                            </dd>

                            <dd th:if="${#authPermit.checkMenuPermits(false, '/chs/zmn/appeal/validity/period/config/list/index.action',
                    '/chs/yeyx/appeal/validity/period/config/list/index.action', '/chs/cnhb/appeal/validity/period/config/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/appeal/validity/period/config/list/index.action?plat=10|" lay-text="申诉有效期配置">申诉有效期配置</a>
                            </dd>

                            <dd th:if="${#authPermit.checkMenuPermit('/chs/level/fine/config/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/level/fine/config/list/index.action|" lay-text="投诉负激励配置">投诉负激励配置</a>
                            </dd>
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/category/list/index.action')}" data-name="button">
                                <a th:lay-href="|${umsURL}/chs/category/list/index.action?level=1|" lay-text="投诉分类配置">投诉分类配置</a>
                            </dd>
                        </dl>
                    </dd>


                </dl>

                <!-- 报表 -->
                <dl class="layui-nav-child">
                    <dd data-name="button"
                        th:if="${#authPermit.checkMenuPermits(false,'/chs/report/list/punishReport.action')}">
                        <a href="javascript:;">报表</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${#authPermit.checkMenuPermit('/chs/report/list/punishReport.action')}"
                                data-name="button">
                                <a th:lay-href="|${umsURL}/chs/report/list/punishReport.action|" lay-text="投诉负激励报表">
                                    投诉负激励报表</a>
                            </dd>
                        </dl>
                    </dd>


                </dl>

            </dd>
        </dl>

        <!--增值工单管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="mast-menu"
                th:if="${#authPermit.checkMenuPermits(false, '/vas/order/*')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-tips"></i>
                    <cite>增值工单管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd th:if="${#authPermit.checkMenuPermit('/vas/order/OrderManager/listPageOrder')}">
                        <a th:lay-href="|${vasURL}/vas/order/manager/order_manager.html|">增值工单管理</a>
                    </dd>
                </dl>
            </dd>
        </dl>
    </li>
</th:block>
</body>
</html>
